package com.fqgj.sentry.manage.service;

import com.fqgj.sentry.manage.entity.McUserEntity;
import com.github.pagehelper.Page;


/**
 * Created by ykpbean kangping.ying@yuntu-inc.com
 *
 * @description
 * @create 2017-07-12 下午2:21
 */

public interface UserService {
    /**
     * 根据用户名查找 用户对象
     * @param account
     * @return
     */
    public McUserEntity selectByAccount(String account);

    /**
     * 根据 id获取用户
     * @param userId
     * @return
     */
    public McUserEntity selectById(Long userId);

    /**
     * 根据商户查询列表，可以支持账号模糊查询
     * @param account
     * @param merchantId
     * @param pageNum
     * @param pageSize
     * @return
     */
    public Page<McUserEntity> selectUserListForPage(String account,Long merchantId, Integer pageNum, Integer pageSize);

    /**
     * 添加一个用户
     * @param mcUserEntity
     * @return
     */
    public McUserEntity insertUser(McUserEntity mcUserEntity);

    /**
     * 删除用户
     * @param userId
     * @param merchantId
     * @return
     */

    public Boolean deleteUser(Long userId,Long merchantId);

}
